Skip to content

Conversation

@krishnprakash
Copy link
Owner

Potential fix for https://github.com/krishnprakash/cloudflare-docs/security/code-scanning/3

To fix the problem, we need to ensure that sensitive information such as client_secret is not logged in clear text. Instead of logging the actual client_secret, we can log a message indicating that a service token was created without revealing the sensitive details. This way, we maintain the functionality of informing the user about the creation of the service token without exposing sensitive information.

We will modify the code in public/cloudflare-one/static/authenticated-doh.py to remove the logging of client_secret and replace it with a more generic message.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…nsitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 28, 2025

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7698ea4
Status:🚫  Build failed.

View logs

@github-actions
Copy link

Howdy and thanks for contributing to our repo. We review new, external PRs within 2 weeks. If it's been longer than then without any movement, tag the PR Assignees in a comment.

@krishnprakash krishnprakash marked this pull request as ready for review February 28, 2025 10:04
@krishnprakash krishnprakash merged commit e6f977d into production Feb 28, 2025
10 of 11 checks passed
@krishnprakash krishnprakash deleted the alert-autofix-3 branch February 28, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants